

package com.hazelcast.internal.config;

import com.hazelcast.config.MergePolicyConfig;

public class MergePolicyConfigReadOnly extends MergePolicyConfig {

    public MergePolicyConfigReadOnly(MergePolicyConfig mergePolicyConfig) {
        super(mergePolicyConfig);
    }

    @Override
    public MergePolicyConfig setPolicy(String policy) {
        throw new UnsupportedOperationException("This is a read-only configuration");
    }

    @Override
    public MergePolicyConfig setBatchSize(int batchSize) {
        throw new UnsupportedOperationException("This is a read-only configuration");
    }
}
